home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
comms
/
non-internet
/
samba
/
docs
/
testprns.0
< prev
next >
Wrap
Text File
|
1996-07-01
|
5KB
|
133 lines
TESTPRNS(1) testprns TESTPRNS(1)
NNAAMMEE
testprns - check printer name for validity with smbd
SSYYNNOOPPSSIISS
tteessttpprrnnss _p_r_i_n_t_e_r_n_a_m_e [ _p_r_i_n_t_c_a_p_n_a_m_e ]
DDEESSCCRRIIPPTTIIOONN
This program is part of the Samba suite.
tteessttpprrnnss is a very simple test program to determine
whether a given printer name is valid for use in a service
to be provided by ssmmbbdd..
"Valid" in this context means "can be found in the print-
cap specified". This program is very stupid - so stupid in
fact that it would be wisest to always specify the print-
cap file to use.
OOPPTTIIOONNSS
_p_r_i_n_t_e_r_n_a_m_e
The printer name to validate.
Printer names are taken from the first field in each
record in the printcap file, single printer names and
sets of aliases separated by vertical bars ("|") are
recognised. Note that no validation or checking of the
printcap syntax is done beyond that required to extract
the printer name. It may be that the print spooling
system is more forgiving or less forgiving than tteesstt--
pprrnnss however if tteessttpprrnnss finds the printer then smbd
should do as well.
_p_r_i_n_t_c_a_p_n_a_m_e
This is the name of the printcap file to search for the
given printer name in.
If no printcap name is specified, tteessttpprrnnss will attempt
to scan the printcap file specified at compile time
(PRINTCAP_NAME).
FFIILLEESS
//eettcc//pprriinnttccaapp
This is usually the default printcap file to scan. See
pprriinnttccaapp((55))))..
EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
Not applicable.
IINNSSTTAALLLLAATTIIOONN
The location of the server and its support files is a
testprns 17/1/1995 1
TESTPRNS(1) testprns TESTPRNS(1)
matter for individual system administrators. The following
are thus suggestions only.
It is recommended that the tteessttpprrnnss program be installed
under the /usr/local hierarchy, in a directory readable by
all, writeable only by root. The program should be exe-
cutable by all. The program should NOT be setuid or set-
gid!
VVEERRSSIIOONN
This man page is (mostly) correct for version 1.9.00 of
the Samba suite, plus some of the recent patches to it.
These notes will necessarily lag behind development of the
software, so it is possible that your version of the pro-
gram has extensions or parameter semantics that differ
from or are not covered by this man page. Please notify
these to the address below for rectification.
SSEEEE AALLSSOO
pprriinnttccaapp((55)),, ssmmbbdd((88)),, ssmmbbcclliieenntt((11))
DDIIAAGGNNOOSSTTIICCSS
If a printer is found to be valid, the message "Printer
name <printername> is valid" will be displayed.
If a printer is found to be invalid, the message "Printer
name <printername> is not valid" will be displayed.
All messages that would normally be logged during opera-
tion of smbd are logged by this program to the file
_t_e_s_t_._l_o_g in the current directory. The program runs at
debuglevel 3, so quite extensive logging information is
written. The log should be checked carefully for errors
and warnings.
Other messages are self-explanatory.
BBUUGGSS
None known.
CCRREEDDIITTSS
The original Samba software and related utilities were
created by Andrew Tridgell (samba-bugs@anu.edu.au). Andrew
is also the Keeper of the Source for this project.
The testprns program and this man page were written by
Karl Auer (Karl.Auer@anu.edu.au)
See ssaammbbaa((77)) ffoorr aa ffuullll lliisstt ooff ccoonnttrriibbuuttoorrss aanndd ddeettaaiillss
ooff hhooww ttoo submit bug reports, comments etc.
testprns 17/1/1995 2